package com.easygo.service;

import com.xuexi.easygo.pojo.Content;

import java.util.List;
import java.util.Map;

public interface IContentService {

    Integer getTotalCount();

    List<Content> getContents(Map<String,Object> map);

    List<Content> getContentsByCategoryId(Integer id);

    //有效无效功能
    Integer updateStatus(Map<String,Object>map);

    //新增广告
    Integer addContent(Content content);

    //根据ID查询对象
    Content getContentById(Integer id);

    Integer updateContent(Content content);
}
